package czx.wt.system.pojo;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @program: spring-jwt
 * @description: 角色与权限实体类
 * @author: ChenZhiXiang
 * @create: 2019-06-19 11:23
 **/
@TableName("sys_role_authorities")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RoleAuthorities implements Serializable {

    private static final long serialVersionUID = 5347585113544400504L;

    /** 主键 */
    @TableId
    private Integer id;
    /** 角色编码 */
    @NotNull(message = "角色编码不为空")
    private Integer roleId;
    /** 权限 */
    @NotNull(message = "权限不能为空")
    private String authority;
    /** 创建时间 */
    private Date createTime;
}
